<?php
session_start();
$subNav = array();
$arr = explode("/", $_SERVER['PHP_SELF']);

$domain = substr($_SERVER['PHP_SELF'], 0, strlen($arr[1]) + 1);

set_include_path("../");
include("inc/essentials.php");
include("model/airport.php");

$id = $_GET["id"];

$rs = Air_Port::findByLichBayId($id);
$search_air_ve = isset($_SESSION["search_air_ve"]) ? $_SESSION["search_air_ve"] : array();
?>
<script>
    $mainNav.set("home");
</script>
<div id="bdwrapper">
    <div id="leftcontent">
        <div class="backcontent"><a href="javascript:history.back()"><img src="img/icons/backicon.png" /><span>Thông tin chi tiết</span></a></div>
        <div class="contentnews">
            <div class="sky_left_section">
                <style>
                    .sky_left_section table,tr,td{
                        border:0px;
                    }
                    .thong-tin-lien-he td { vertical-align:top;}
                    .thong-tin-lien-he input[type="text"] { width:100%;}
                    .thong-tin-lien-he label { line-height:22px; font-weight:bold; color:#999; }
                    .thong-tin-lien-he label span { font-size:11px; font-weight:normal; color:#999;}
                    .thong-tin-lien-he select { width:100%; height:30px;}
                    .thong-tin-lien-he input{
                        height:30px;
                    }
                </style>
                <?php
                if ($rs) {
                    foreach ($rs as $_lich_bay) {
                        ?>
                        <form method="post" action="http://127.0.0.1/win8/skyexpress/#!/url=donhang.php">
                            <span class="sdb p5" style="font-weight:bold; font-size:20px; color:#143B85">Thông tin chuyến bay</span>
                            <table class="tb0" width="100%">
                                <tbody><tr>
                                        <td width="14%"><img src="img/flight-icon.png" style="width:80px; position:absolute"></td>
                                        <td width="14%">Chuyến Bay :<br>Ngày xuất phát:</td>
                                        <td width="18%" style="font-weight:bold">Khứ hồi<br><?php echo date("d-m-Y", $_lich_bay["ngay_di"]); ?></td>
                                        <td width="22%">Số lượng hành khách :<br>Ngày về:</td>
                                        <td width="44%" style="font-weight:bold">
                                            <?php echo $_SESSION["nguoilon"] ?> người lớn, 
                                            <?php echo $_SESSION["treem"] > 0 ? $_SESSION["treem"] . " trẻ em," : NULL; ?>
                                            <?php echo $_SESSION["embe"] > 0 ? $_SESSION["embe"] . " em bé" : NULL; ?>
                                            <br><?php echo $_SESSION["ngayve"] === "0" ? null : date("d-m-Y", $_SESSION["ngayve"]) ?></td>
                                    </tr>
                                </tbody></table>
                            <span class="dsb p5"></span>
                            <span class="dsb p5"></span>
                            <p style="background:#F1F1F1; border-top:1px solid #E5E5E5; font-size:13px; padding:2px; position:relative; line-height:30px;">
                                <img src="img/OutBound.png" style="float:left; margin-right:30px;">
                                Khởi hành từ <strong> <?php
                                    $air_to = Air_Port::findAirportCodeId($_lich_bay["airport_code_to"]);
                                    foreach ($air_to as $_air_to) {
                                        ?>
                                        <?php echo $_air_to["title"] . ", Viet Nam" ?>
                                    <?php } ?></strong>
                                <span class="dsb" style="position:absolute; width:200px; top:2px; right:10px;">Thời gian : <strong>1 giờ : 60 phút</strong></span>
                                <span class="clear dsb"></span>
                            </p>
                            <table width="100%" class="tb0" style="line-height:140%">
                                <tbody><tr>
                                        <td width="10%">
                                            <img src="img/f7a5e8f5524d9b45db5af51dde490ff7.gif" style="position:absolute">
                                        </td>
                                        <td width="37%">
                                            Từ: <?php
                                            $air_to = Air_Port::findAirportCodeId($_lich_bay["airport_code_to"]);
                                            foreach ($air_to as $_air_to) {
                                                ?><label style="font-weight: bold">
                                                <?php echo $_air_to["title"] ?>
                                                </label> (<?php echo $_air_to["code"] ?>)<?php } ?><br>
                                            <label style="font-weight: bold"><?php echo date("H:i", $_lich_bay["ngay_den"]) ?></label>, <?php echo date("d-m-Y", $_lich_bay["ngay_di"]); ?></td>
                                        <td width="37%">
                                            Tới: <?php
                                            $air_go = Air_Port::findAirportCodeId($_lich_bay["airport_code_go"]);
                                            foreach ($air_go as $_air_go) {
                                                ?><label style="font-weight: bold">
                                                <?php echo $_air_go["title"] ?>
                                                </label> (<?php echo $_air_go["code"] ?>)<?php } ?><br>
                                            <label style="font-weight: bold"><?php echo date("H:i", $_lich_bay["ngay_den"]) ?></label>, <?php echo date("d-m-Y", $_lich_bay["ngay_den"]) ?></td>
                                        <td width="16%">
                                            <?php
                                            $air = Air_Port::findAirLineById($_lich_bay["airlines_id"]);
                                            foreach ($air as $_air) {
                                                echo $_air["title"];
                                            }
                                            ?> 
                                            <br>(<?php echo $_lich_bay["ma_may_bay"] ?>)<br>
                                            Loại vé: <strong><?php echo $_lich_bay["loai_ve"] ?></strong>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>

                            <!-- *************************************************************** -->
                            <?php if (!empty($search_air_ve)) { ?>
                                <?php foreach ($search_air_ve as $_search_air_ve) { ?>
                                    <span class="dsb p5"></span>
                                    <span class="dsb p5"></span>
                                    <input type="hidden" id="ngay_ve" value="<?php echo $_search_air_ve["ngay_di"]; ?>"/>
                                    <input type="hidden" id="ma_chuyen_bay_ve" value="<?php echo $_search_air_ve["id"]; ?>"/>
                                    <p style="background:#F1F1F1; border-top:1px solid #E5E5E5; font-size:13px; padding:2px; position:relative; line-height:30px;">
                                        <img src="img/InBound.png" style="float:left; margin-right:30px;">
                                        Khởi hành từ <strong>
                                            <?php
                                            $air_go = Air_Port::findAirportCodeId($_search_air_ve["airport_code_go"]);
                                            foreach ($air_go as $_air_go) {
                                                ?>
                                                <?php echo $_air_go["title"] ?>
                                            <?php } ?>, Việt Nam</strong>
                                        <span class="dsb" style="position:absolute; width:200px; top:2px; right:10px;">Thời gian : <strong>1 giờ : 30 phút</strong></span>
                                        <span class="clear dsb"></span>
                                    </p>
                                    <table width="100%" class="tb0" style="line-height:140%">
                                        <tbody><tr>
                                                <td width="10%">
                                                    <img src="img/f7a5e8f5524d9b45db5af51dde490ff7.gif" style="position:absolute">
                                                </td>
                                                <td width="37%">
                                                    Từ: <strong><?php echo $_air_go["title"] ?></strong> (<?php echo $_air_go["code"] ?>)<br>
                                                    <strong>12:55:00</strong>, 27-11-2013            </td>
                                                <td width="37%">
                                                    Tới: <strong><?php
                                                        $air_to = Air_Port::findAirportCodeId($_search_air_ve["airport_code_to"]);
                                                        foreach ($air_to as $_air_to) {
                                                            ?>
                                                            <?php echo $_air_to["title"] ?>
                                                        <?php } ?></strong> (<?php echo $_air_to["code"] ?>)<br>
                                                    <strong>14:25:00</strong>, 27-11-2013            </td>
                                                <td width="16%">
                                                    <?php
                                                    $air = Air_Port::findAirLineById($_search_air_ve["airlines_id"]);
                                                    foreach ($air as $_air) {
                                                        echo $_air["title"];
                                                    }
                                                    ?>
                                                    <br>(<strong><?php echo $_search_air_ve["ma_may_bay"] ?></strong>)<br>
                                                    Loại vé: <strong><?php echo $_search_air_ve["loai_ve"] ?></strong>
                                                </td>
                                            </tr>
                                        </tbody></table>
                                <?php } ?>
                            <?php } ?>
                            <!-- *********************** -->
                            <span class="sdb p5" style="font-weight:bold; font-size:20px; color:#143B85">Điều kiện giá vé</span>
                            <div class="p5 mgb5" style="border-bottom:1px solid #CCC;"></div>
                            <p style="font-size:14px; font-weight:bold; padding:10px;">Điều kiện giá vé chiều đi</p>
                            <?php
                            $air = Air_Port::findAirLineById($_lich_bay["airlines_id"]);
                            foreach ($air as $_air) {
                                ?>
                                <table width="100%" class="tb0">
                                    <tbody><tr>
                                            <td width="30%">Hoàn Vé</td>
                                            <td width="70%"><?php echo $_air["hoan_ve"] ?></td>
                                        </tr>
                                        <tr>
                                            <td width="30%">Đổi Tên Hành Khách</td>
                                            <td width="70%"><?php echo $_air["doi_ten"] ?></td>
                                        </tr>
                                        <tr>
                                            <td width="30%">Đổi Hành Trình</td>
                                            <td width="70%"><?php echo $_air["doi_hanh_trinh"] ?></td>
                                        </tr>
                                        <tr>
                                            <td width="30%">Đổi Ngày Giờ Chuyến Bay</td>
                                            <td width="70%"><?php echo $_air["doi_ngay_gio"] ?></td>
                                        </tr>
                                        <tr>
                                            <td width="30%">Bảo lưu</td>
                                            <td width="70%"><?php echo $_air["bao_luu"] ?></td>
                                        </tr>
                                        <tr>
                                            <td width="30%">Thời hạn thay đổi </td>
                                            <td width="70%"><?php echo $_air["thoi_gian_doi"] ?></td>
                                        </tr>
                                        <tr>
                                            <td width="30%">Thay đổi chuyến bay</td>
                                            <td width="70%"><?php echo $_air["doi_chuyen_bay"] ?></td>
                                        </tr>
                                    </tbody></table>
                                <?php if (!empty($search_air_ve)) { ?>
                                    <p style="font-size:14px; font-weight:bold; padding:10px;">Điều kiện giá vé chiều về</p>
                                    <table width="100%" class="tb0">
                                        <tbody><tr>
                                                <td width="30%">Hoàn Vé</td>
                                                <td width="70%"><?php echo $_air["hoan_ve"] ?></td>
                                            </tr>
                                            <tr>
                                                <td width="30%">Đổi Tên Hành Khách</td>
                                                <td width="70%"><?php echo $_air["doi_ten"] ?></td>
                                            </tr>
                                            <tr>
                                                <td width="30%">Đổi Hành Trình</td>
                                                <td width="70%"><?php echo $_air["doi_hanh_trinh"] ?></td>
                                            </tr>
                                            <tr>
                                                <td width="30%">Đổi Ngày Giờ Chuyến Bay</td>
                                                <td width="70%"><?php echo $_air["doi_ngay_gio"] ?></td>
                                            </tr>
                                            <tr>
                                                <td width="30%">Bảo lưu</td>
                                                <td width="70%"><?php echo $_air["bao_luu"] ?></td>
                                            </tr>
                                            <tr>
                                                <td width="30%">Thời hạn thay đổi </td>
                                                <td width="70%"><?php echo $_air["thoi_gian_doi"] ?></td>
                                            </tr>
                                            <tr>
                                                <td width="30%">Thay đổi chuyến bay</td>
                                                <td width="70%"><?php echo $_air["doi_chuyen_bay"] ?></td>
                                            </tr>
                                        </tbody></table>
                                <?php } ?>
                            <?php } ?>
                            <div class="p5 mgb5"></div>
                            <span class="sdb p5" style="font-weight:bold; font-size:20px; color:#143B85">Thông tin hành lý</span>
                            <div class="p5 mgb5" style="border-bottom:1px solid #CCC;"></div>

                            <p style="font-size:14px; font-weight:bold; padding:10px;">Hành lý chiều đi</p>
                            <table class="tb0" width="100%">
                                <tbody><tr>
                                        <td width="30%">Hành lý xách tay</td>
                                        <td width="70%">7 kg</td>
                                    </tr>
                                    <tr>
                                        <td>Hàng lý ký gửi</td>
                                        <td>Vui lòng chọn ở bước sau.</td>
                                    </tr>
                                </tbody></table>

                            <p style="font-size:14px; font-weight:bold; padding:10px;">Hành lý chiều về</p>
                            <table class="tb0" width="100%">
                                <tbody><tr>
                                        <td width="30%">Hành lý xách tay</td>
                                        <td width="70%">7 kg</td>
                                    </tr>
                                    <tr>
                                        <td>Hàng lý ký gửi</td>
                                        <td>Vui lòng chọn ở bước sau.</td>
                                    </tr>
                                </tbody></table>
                            <div class="p5 mgb5"></div>
                            <!--<span class="sdb p5" style="font-weight:bold; font-size:20px; color:#143B85">Thông tin du khách</span>-->
                            <div class="p5 mgb5" style="border-bottom:1px solid #CCC;"></div>

                            <table>
                                <tbody>
                                    <tr>
                                        <td width="25%" style="display:block; width:60px;">
                                        </td>
                                        <td width="15%">
                                            <b></b>
                                        </td>
                                        <td colspan="" width="25%" style="vertical-align: middle">
                                            <!--                                            <b>Họ và tên</b><br>
                                                                                        <i style="font-size: 11px; color: #999; font-style: normal">(ví dụ: Nguyen Thi Hoai Thu)</i>-->
                                        </td>
                                        <td width="30%">
                                            <!--                                            <b>
                                                                                            Ngày sinh</b><br>
                                                                                        <i style="font-size: 11px; color: #999; font-style: normal">(ví dụ: 30/04/1975)</i>-->
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
        <!--                                            <select name="Adult[]" id="adult">
                                                <option selected="selected" value="Ông">Ông</option>
                                                <option value="Bà">Bà</option>
                                                <option value="Anh">Anh</option>
                                                <option value="Chị">Chị</option>
                                            </select>-->
                                        </td>
                                        <td>
                                            <!--<input name="txtFullNameAdult[]" type="text" value="" maxlength="500" id="fullname" class="letterOnly i-require new LastNamePassengerFlight" style="width:300px;">-->
                                        </td>
                                        <td></td>
                                    </tr>
                                </tbody></table>

                            <div class="p5 mgb5"></div>
                            <span class="sdb p5" style="font-weight:bold; font-size:20px; color:#143B85">Thông tin liên hệ</span>
                            <table class="booking-info-bg-table thong-tin-lien-he" width="100%">
                                <tbody><tr>
                                        <td class="_note" colspan="2">
                                            Xin vui lòng điền vào tất cả các thông tin, chúng tôi sẽ liên hệ với bạn khi cần.
                                            <span class="require"> * </span>Thông tin bắt buộc
                                            ...
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="50%" valign="top" style="padding:0px;">
                                            <table style="border-spacing: 0;">
                                                <tbody><tr>
                                                        <td>
                                                            <table style="border: 0px;border-spacing: 0;">
                                                                <tbody><tr style="border: none">
                                                                        <td style="border: none">
                                                                            <label for="">
                                                                                Quý danh
                                                                                <span class="require">* </span>
                                                                            </label>
                                                                            <br>
                                                                            <input type="hidden" id="ma_chuyen_bay" value="<?php echo $_lich_bay["id"] ?>"/>
                                                                            <input type="hidden" id="ngay_di" value="<?php echo $_lich_bay["ngay_di"] ?>"/>
                                                                            <select name="gender" id="gender" class="gender">
                                                                                <option selected="selected" value="Ông">Ông</option>
                                                                                <option value="Bà">Bà</option>
                                                                                <option value="Anh">Anh</option>
                                                                                <option value="Chị">Chị</option>
                                                                            </select>
                                                                        </td>
                                                                        <td colspan="2" style="border: none">
                                                                            <label for="">
                                                                                Họ và tên
                                                                                <span class="require">* </span>
                                                                            </label>
                                                                            <br>
                                                                            <input name="fullname" type="text" value="" maxlength="250" id="fullname" class="new last-name letterOnly i-require" style="width:240px;">
                                                                        </td>
                                                                    </tr>
                                                                </tbody></table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="padding:0px; padding-left:5px; padding-right:5px; padding-bottom:5px;">
                                                            <label for="">
                                                                E-mail
                                                                <span class="require">* </span><span class="example">
                                                                    Ví dụ: example@domain.com </span>
                                                            </label>
                                                            <br>
                                                            <input name="email" type="text" value="" maxlength="200" id="email" class="new email i-require">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="">
                                                            <label for="">
                                                                Số điện thoại
                                                                <span class="require">* </span>
                                                            </label>
                                                            <br>
                                                            <input name="phone" type="text" value="" maxlength="20" id="phone" class="new phone i-require">
                                                        </td>
                                                    </tr>
                                                </tbody></table>
                                        </td>
                                        <td width="50%" valign="top">
                                            <table style="border-spacing: 0;">
                                                <tbody><tr>
                                                        <td>
                                                            <label for="">
                                                                Quốc Gia
                                                                <span class="require">* </span>
                                                            </label>
                                                            <br>
                                                            <input id="country" name="country" type="text">
                                                            <script language="javascript">
                                                                url_search = "http://localhost/abay/admin/country/search_country";
                                                                $(document).ready(function(e) {
                                                                    $('option[id="country"]').parent().css('position', 'relative');
                                                                });
                                                                $('input[name="code"]').keypress(function() {
                                                                    var obj = $(this);
                                                                    obj.parent().css('position', 'relative');
                                                                    obj.parent().find('select').addClass('option_select').bind('click', function() {
                                                                        return false;
                                                                    }).bind('dblclick', function() {
                                                                        obj.val($(this).val());
                                                                        $(this).removeClass();
                                                                    }).bind('change', function() {
                                                                        obj.val($(this).val());
                                                                        $(this).removeClass();
                                                                    });
                                                                    $.post(url_search, {str: obj.val()}, function(data) {
                                                                        obj.parent().find('select').html(data);
                                                                    });
                                                                });
                                                            </script>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="padding-top: 3px">
                                                            <label for="">
                                                                <label for="">
                                                                    Thành phố
                                                                    <span class="require">* </span>
                                                                </label>
                                                            </label>
                                                            <br>
                                                            <input name="city" type="text" value="" maxlength="250" id="city" class="new city i-require">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <label for="">
                                                                Địa chỉ
                                                                <span class="require">* </span>
                                                            </label>
                                                            <br>
                                                            <input name="address" type="text" value="" maxlength="250" id="address" class="new i-require">
                                                        </td>
                                                    </tr>
                                                </tbody></table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="invoice" colspan="2" style="padding:0px;">
                                            <input id="IsInvoice" type="checkbox" name="IsInvoice" style="width:20px; float:left;">
                                            <label for="" style="line-height:35px;">
                                                Tôi muốn xuất hóa đơn
                                            </label>
                                            <script language="javascript">
                                                $(document).ready(function(e) {
                                                    $('input#IsInvoice').click(function() {
                                                        if ($('tr#invoice_details').css('display') == 'none') {
                                                            $('tr#invoice_details').show(500);
                                                        } else {
                                                            $('tr#invoice_details').hide(500);
                                                        }
                                                    });
                                                });
                                            </script>
                                        </td>
                                    </tr>
                                    <tr id="invoice_details" style="display: none;">
                                        <td colspan="2">
                                            <fieldset class="radius-5px" style="display: block;
                                                      -webkit-margin-start: 2px;
                                                      -webkit-margin-end: 2px;
                                                      -webkit-padding-before: 0.35em;
                                                      -webkit-padding-start: 0.75em;
                                                      -webkit-padding-end: 0.75em;
                                                      -webkit-padding-after: 0.625em;
                                                      border: 2px groove threedface;
                                                      border-image: initial;">
                                                <legend>
                                                    Chi tiết hóa đơn</legend>
                                                <table style="width: 100%">
                                                    <tbody><tr>
                                                            <td>
                                                                <label for="">
                                                                    Tên Công ty
                                                                    <span class="require">* </span>
                                                                </label>
                                                                <br>
                                                                <input name="nameorder" type="text" maxlength="250" id="nameorder" class="new i-require letterOnly">
                                                            </td>
                                                            <td>
                                                                <label for="">
                                                                    Địa chỉ
                                                                    <span class="require">* </span>
                                                                </label>
                                                                <br>
                                                                <input name="addressorder" type="text" maxlength="250" id="addressorder" class="new i-require">
                                                            </td>
                                                            <td>
                                                                <label for="">
                                                                    Mã số thuế
                                                                    <span class="require">* </span>
                                                                </label>
                                                                <br>
                                                                <input name="tax" type="text" maxlength="250" id="tax" class="new i-require">
                                                            </td>
                                                        </tr>
                                                        <tr><td colspan="3">
                                                                <label for="">
                                                                    Địa chỉ nhận hóa đơn
                                                                </label>
                                                                <br>
                                                                <input name="InvoiceAddress" type="text" id="InvoiceAddress" style="width:99%;">
                                                            </td></tr>
                                                    </tbody></table>
                                            </fieldset>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="receive" colspan="2" style="padding:0px;">
                                            <input id="IsReceiveInformation" type="checkbox" name="IsReceiveInformation" checked="checked" style="width:20px; float:left;">
                                            <label for="" style="line-height:35px;">
                                                Tôi muốn nhận được thông tin về chương trình khuyến mãi, tin tức....
                                            </label>
                                        </td>
                                    </tr>

                                </tbody></table>
                            <div class="p5 mgb5" style="border-bottom:1px solid #CCC;"></div>
                            <div class="p5 mgb5"></div>
                            <span class="sdb p5" style="font-weight:bold; font-size:20px; color:#143B85">Yêu cầu đặc biệt</span>
                            <div class="p5 mgb5" style="border-bottom:1px solid #CCC;"></div>
                            <table width="100%" class="tb0">
                                <tbody>
                                    <tr>
                                        <td valign="top">
                                            <p>
                                                Viết yêu cầu của bạn vào ô bên dưới (Tiếng Anh hoặc Tiếng Việt).</p>
                                            <textarea name="txtRemark" rows="5" cols="60" id="txtRemark"></textarea>
                                        </td>
                                        <td valign="middle" class="input-submit">

                                            <input type="button" name="Continue" value="Xác Nhận" id="Continue" class="button-text radius-5px" style="
                                                   background: url('img/continue-passenger.png') no-repeat;
                                                   height: 49px;
                                                   width: 133px;
                                                   padding: 9px 50px 8px 5px;
                                                   text-align: justify;
                                                   white-space: pre-line;
                                                   text-align: center;
                                                   font-size: 16px;
                                                   border:0px;
                                                   cursor: pointer;">
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                        <?php
                    }
                }
                ?>
            </div>        
        </div>
    </div>
    <div id="rightcontent">
        <?php require_once 'tpl/ticket/menu_right.php'; ?>
    </div>
    <div class="clearAll"></div>
    <ul class="listservice">
        <li><a <?php metroLink("search.php") ?>><img src="img/banner/dat-ve.jpg" width="178" height="132" /></a></li>
        <li><a <?php metroLink("search.php") ?>><img src="img/banner/thue-xe.jpg" width="178" height="132" /></a></li>
        <li><a <?php metroLink("search.php") ?>><img src="img/banner/datphong.jpg" width="178" height="132" /></a></li>
        <li><a <?php metroLink("search.php") ?>><img src="img/banner/dulich.jpg" width="178" height="132" /></a></li>
        <li><a <?php metroLink("search.php") ?>><img src="img/banner/dichvu.jpg" width="178" height="132" /></a></li>
    </ul>
</div>

<div class="clear"></div>
<div class="webfooter">
    <div id="bdwrapper">
        <!--daily-->
        <div class="ctnfooter">
            <div class="title">Danh sách đại lý</div>
            <ul>
                <li><a href="#">Đại lý miền Bắc</a></li>
                <li><a href="#">Đại lý miền Trung</a></li>
                <li><a href="#">Đại lý miền Nam</a></li>
            </ul>
        </div>
        <!--tuvan-->
        <div class="ctnfooter">
            <div class="title bgtitle">Tư vấn & Hướng dẫn</div>
            <ul>
                <li><a href="#">Liên hệ</a></li>
                <li><a href="#">Hướng dẫn thanh toán</a></li>
                <li><a href="#">Thông tin chuyển khoản</a></li>
                <li><a href="#">Hướng dẫn đặt vé</a></li>
                <li><a href="#">Câu hỏi thường gặp</a></li>
                <li><a href="#">Chăm sóc khách hàng</a></li>
                <li><a href="#">Trang tư vấn</a></li>
            </ul>
        </div>
        <!--aboutus-->
        <div class="ctnfooter">
            <div class="title bgtitle">Về chúng tôi</div>
            <ul>
                <li><a href="#">Giới thiệu về SkyExpress</a></li>
                <li><a href="#">Các đơn vị hợp tác</a></li>
                <li><a href="#">Cơ hội hợp tác</a></li>
                <li><a href="#">Cấu trúc trang web</a></li>
                <li><a href="#">Tin tức</a></li>
            </ul>
        </div>
        <!--contact-->
        <div class="colcontact">
            <div class="phone mrgbtm">
                <div class="iconlist"><img src="img/icons/contactlist.png" /></div>
                <div class="infolist">
                    <div><span class="location">Toàn quốc</span><span>04.3533.3338</span></div>
                    <div><span class="location">Hà Nội</span><span>04.3533.3338</span></div>
                    <div><span class="location">Sài Gòn</span><span>04.3533.3338</span></div>
                </div>
            </div>
            <div class="clear"></div>
            <!--Chat-->
            <div class="iconlist mrgbtm"><img src="img/icons/chat.png" /><span>skyexpress</span></div>
            <div class="clear"></div>
            <!--mail-->
            <div class="iconlist mrgbtm"><img src="img/icons/mai1.png" /><span>Contact@skyexpress.vn</span></div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="clear"></div>
    <div class="copyright">
        <div class="fl">© 1996-2013, skyexpress.vn</div>
        <div class="fl" style="margin-left:145px;"><a href="#">Đặt vé</a>  /   <a href="#">Đặt phòng</a>   /    <a href="#">Thuê xe</a>   /   <a href="#">Giới thiệu</a> / <a href="#">Quản lý</a></div>
        <div class="logobtm"><img src="img/icons/logobtm.png" /></div>
    </div>
    <div class="clear"></div>
</div>
<script>
    $('#Continue').click(function() {
        $.ajax({
            // The link we are accessing.
            url: "<?php echo $domain ?>/ajax.php",
            // The type of request.
            type: "get",
            data: "act=add_order&fullname=" + $('#fullname').val() + "&country=" + $('#country').val() + "&email=" + $('#email').val() + "&city=" + $('#city').val() + "&phone=" + $('#phone').val() + "&address=" + $('#address').val() + "&nameorder=" + $('#nameorder').val() + "&addressorder=" + $('#addressorder').val() + "&tax=" + $('#tax').val() + "&InvoiceAddress=" + $('#InvoiceAddress').val() + "&txtRemark=" + $('#txtRemark').val() + "&IsInvoice=" + $('#IsInvoice').is(":checked") + "&ngay_di=" + $('#ngay_di').val() + "&ngay_ve=" + $('#ngay_ve').val() + "&ma_chuyen_bay=" + $('#ma_chuyen_bay').val() + "&ma_chuyen_bay_ve=" + $('#ma_chuyen_bay').val(),
            // The type of data that is getting returned.
            dataType: "html",
            error: function() {
                // Load the content in to the page.
                $("#error").html("<label>Page Not Found!!</label>");
                $("#error").css({display: "block"});
            },
            success: function(strData) {
                // Load the content in to the page.
                if (strData == "2") {
                    alert('Error!!!');
                } else {
                    alert('Gửi Order thành công. Mã Order của bạn : ' + strData);
                }

            }
        });
    });
</script>